Skip to content

Conversation

@ktoso
Copy link
Contributor

@ktoso ktoso commented Nov 21, 2025

This is a follow up from the "async" deinit work, which will allow us to guarantee cleanup code to run in deinitializers, even if they need to call asynchronous code, and even if they may be run in a task that was cancelled: by "shielding" it from cancellation.

This is incomplete, the child handling needs some more love.

SE proposal: swiftlang/swift-evolution#3037

@ktoso ktoso force-pushed the wip-cancellation-shield-poc branch from eab51c4 to 91ea399 Compare November 21, 2025 02:44
ktoso added a commit to ktoso/swift-evolution that referenced this pull request Nov 21, 2025
Introduce a proposal for task cancellation shields to allow certain code to execute regardless of task cancellation status.

Implementation WIP PR: swiftlang/swift#85637
@ktoso ktoso added the swift evolution pending discussion Flag → feature: A feature that has a Swift evolution proposal currently in review label Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

swift evolution pending discussion Flag → feature: A feature that has a Swift evolution proposal currently in review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant